﻿// nodeID and nodeType are properties of the umbracoDefault.js script which will be accessible from this file.

// These are the properties of the node that has been right clicked to create the context menu.
// These properties will be helpful in doing something useful with the script.

function DeleteFolder(title, question) {
    if (nodeID != '-1' && nodeType != '') {

        var response = confirm(question.replace('[foldername]', '"' + nodeID + '"'));

        if (response) {
            parent.openModal('/umbraco/filemanager/Dialogs/DeleteItem.aspx?type=folder&item=' + encodeURI(nodeID), title, 130, 400);
        }

        return false;
    }
}